<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<form action="" method="post">
    用户名: <input type="text" name="uname" value="{{ user }}"><br>
    密码: <input type="text" name="pwd" value="{{ pwd }}"><br>
    <input type="checkbox" value="1" name="y">记住密码
    <button>登录</button>
    <button><a href="{% url 'zhuce' %}">注册</a></button>

</form>

<form method="POST" enctype="multipart/form-data">
{% csrf_token %}
<input type="file" name="img">
<button type="submit">上传</button>
</form>

</body>
</html>